﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WODPL.Models
{
    public delegate void GameMenuItemModelAction();

    public class GameMenuItemModel
    {
        private readonly string text;
        private readonly GameMenuItemModelAction action;
        // TODO: replace current absolute calculation of position by relative.

        public GameMenuItemModel(string text, GameMenuItemModelAction action)
        {
            this.text = text;
            this.action = action;
        }

        public void PerformAction()
        {
            action();
        }

        public string Text
        {
            get { return text; }
        }
    }
}
